/**
 * 
 */
package com.dsteiner.xelavos.client.model;

import java.beans.PropertyChangeListener;

import com.dsteiner.widgets.client.PropertyChangeCollection;

public class CommentModel extends DisplayModel{
	private PropertyChangeCollection propertyChangeSupport = new PropertyChangeCollection(
			this);
	
	public void addPropertyChangeListener(String propertyName,
			PropertyChangeListener listener) {
		propertyChangeSupport.registerPropertyChangeListener(
				propertyName, listener);
	}
	private String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		String oldMessage = this.message;
		this.message = message;
		propertyChangeSupport.firePropertyChange("message", oldMessage, message);
	}
}